{% extends 'base_admin.html' %}

{% block title %}后台 新建文章{% endblock %}
{% block Logi %}{{ url_for('logout') }}{% endblock %}
{% block Login %}Logout{% endblock %}

{% block new %}
        <div align="center" style="margin-top: 10% ;">
            <h1>新建文章</h1>
            <form method="post">
                <div>
                    <label for="title">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;标题</label>
                    <input type="text" name="title" placeholder="标题" value="{{ request.form['title'] }}"/>
                </div>

                <div>
                    <label for="content">内容</label>
                    <textarea name="content" placeholder="文章内容">{{ request.form['content'] }}</textarea>
                </div>

                <div>
                    <label for="sketch">简介</label>
                    <textarea name="sketch" placeholder="简介|非必填">{{ request.form['sketch'] }}</textarea>
                </div>

                <div>
                    <label for="picture">图片</label>
                    <textarea name="picture" placeholder="背景图片url|非必填">{{ request. form['picture'] }}</textarea>
                </div>

                <div>
                    <button type="submit">提交</button>
                </div>
            </form>
        </div>
{% endblock %}


{# 不去显示其他占位符区域 #}
{% block yemei %}{% endblock %}
{% block zhuti %}{% endblock %}
{% block edit %}{% endblock %}

